package com.online.dao;

import com.online.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    User selectUserById(Integer id);

    User selectUserByUserNumber(String userNumber);

    Integer selectStatusByUserNumber(String userNumber);

    String selectRoleByUserNumber(String userNumber);

    int insertARecord(User user);

    int deleteUserByUserNumber(String userNumber);

    int updateUserByUserNumber(@Param("userNumber") String userNumber,@Param("password") String password);

    int updateStatus(@Param("userNumber") String userNumber,@Param("status") Integer status);

}
